<?php


namespace app\wechat\validate;


use think\Validate;

class TokenGet extends Validate
{
    protected $rule=[
        'code'=>'require|isNotEmpty'
    ];
    protected $message=[
        'code'=>'没有code还想获取token,做梦哦'
    ];
    protected function isNotEmpty($value,$rule='',$data='',$field=''){
        if (empty($value)){
            return false;
        }else{
            return true;
        }
    }
}